docs: add an FDv2 example app for the Flutter SDK#316
Merged
Conversation
0a9b5dd to
dd322f6
Compare
8a6c2dc to
d5c9834
Compare
A runnable example demonstrating FDv2 in the Flutter SDK: enabling the data system via DataSystemConfig on LDConfig and switching connection modes with setConnectionMode. Registered in the melos workspace. Modeled on the js-core react-native example-fdv2.
d5c9834 to
957001c
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f0b7da3. Configure here.
- Add com.apple.security.network.client to the macOS entitlements so sandboxed builds can reach LaunchDarkly. - Declare the INTERNET permission in the main Android manifest so release builds (which merge only that manifest) have network access. - Only update the displayed active context when identify completes; a superseded or errored identify no longer relabels the context.
joker23
approved these changes
Jun 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Stacked on #314 (the Flutter FDv2 exposure). A runnable example app demonstrating FDv2 in the Flutter SDK.
What it shows
LDConfig(..., dataSystem: DataSystemConfig()).LDClient.setConnectionMode(...).Registered in the melos workspace (
packages/flutter_client_sdk/example_fdv2). Modeled on js-core's react-nativeexample-fdv2.flutter analyzeclean on the examplelib/.Note
Low Risk
Example-only and documentation; no changes to the published SDK library code paths.
Overview
Adds
packages/flutter_client_sdk/example_fdv2, a runnable manual-test app for the Flutter SDK’s FDv2 data path, and registers it inmelos.yamlsomelos bootstraplinks the local SDK.The demo UI wires
LDConfigwithdataSystem: DataSystemConfig()(FDv2 opt-in),CredentialSource.fromEnvironment(), and a sample user context. It surfaces livedataSourceStatusChanges,flagChanges/allFlags(), runtimesetConnectionMode(automatic, streaming, polling, background, offline), andidentifywith result feedback. A README documents credentials via--dart-defineand expected manual checks.Platform scaffolding (Android/iOS/web/desktop) is standard Flutter template output; the meaningful product change is the example app plus melos membership, not SDK internals.
Reviewed by Cursor Bugbot for commit f9be9de. Bugbot is set up for automated code reviews on this repo. Configure here.